# include"Heart.h"
# include<fstream>
# include<iostream>

using namespace std;

// 绘图计算数据函数
int main()
{
    int num[] = {10, 40, 160};
    
    ofstream fout;
    fout.open("data/ProE.txt", ios::out);
    double eps = 1.0 / 1000;
    for (int j = 0; j < 3; j++)
    {
        heart H1(num[j]);

        for(int i = 0; i < 1001; i++)
        {
            fout << H1.Getx(i * eps) << " ";
        }
        fout << endl;
        for(int i = 0; i < 1001; i++)
        {
            fout << H1.Gety(i * eps) << " ";
        }
        fout << endl;
    }
    
    fout.close();

    cout << "Finish ProE." << endl;
    return 0;
}